package com.example.newsmanager.entity.DTO;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class LoginDTO {
    @NotNull(message = "信息不能为null")
    @NotEmpty(message = "信息不能为空")
    private String loginCondition;

    @NotNull(message = "密码不能为null")
    @NotEmpty(message = "密码不能为空")
    @Size(min = 6, max = 14, message = "密码在6-14位之间")
    private String password;
}
